home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
dev
/
misc
/
mkdepend_1_1.lha
/
MkDepend-1.1
/
DMakefile
next >
Wrap
Makefile
|
1995-10-14
|
2KB
|
70 lines
# $VER: DMakefile 1.1 (12-Oct-95)
#--------------------------------------------------------------------------
# Makefile for MkDepend
#
# Written for use with DICE 3 and its DMake 2.4
#--------------------------------------------------------------------------
# Available targets:
# MkDepend: creates the program.
# clean : deletes all objects, test.#? and a.out.
# clobber : same as clean, also deletes the executable.
# depend : updates the Makefile by the source dependencies.
# archive : creates an archive MkDepend-<version>.lha
# Release version, should match the version number in main.c and Makefile.
VERSION= 1.1
#--------------------------------------------------------------------------
# Source files
SOURCES= main.c reader.c nodes.c
# Other files to archive
OTHER= $(SOURCES:*.c:%1.h) Makefile DMakefile \
HISTORY MkDepend.doc MkDepend.readme
# Object files to generate
OBJECTS= $(SOURCES:*.c:obj/%1.o)
# Check prototypes on compilation
CFLAGS= -O "" -proto
#--------------------------------------------------------------------------
MkDepend : obj $(OBJECTS)
dcc -o %(left) %(right:*.o)
$(OBJECTS) : $(SOURCES)
dcc $(CFLAGS) -o %(left) -c %(right)
clean :
delete #?.o test.#? a.out
delete obj/#?
clobber : clean
delete MkDepend MkDepend-#?.readme MkDepend-#?.lha
delete obj all
depend : $(SOURCES)
MkDepend $(SOURCES) -p.c:obj/%n.o -fDMakefile
archive : depend MkDepend
makedir MkDepend-$(VERSION)
copy MkDepend $(SOURCES) $(OTHER) MkDepend-$(VERSION) clone
copy MkDepend.readme MkDepend-$(VERSION).readme
delete MkDepend-$(VERSION).lha
lha -axmr a MkDepend-$(VERSION).lha MkDepend-$(VERSION)
delete MkDepend-$(VERSION) all quiet
echo "Archive created."
obj :
makedir obj
# --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS FOLLOW ---
obj/main.o : main.c nodes.h reader.h
obj/nodes.o : nodes.c nodes.h
obj/reader.o : reader.c reader.h
# --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS PRECEDE ---